package com.example.manager.mapper;

import com.example.manager.domain.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_menu(菜单表)】的数据库操作Mapper
* @createDate 2024-10-10 16:09:28
* @Entity com.example.manager.domain.SysMenu
*/
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> findSysMenus();

    List<SysMenu> findSysMenusByUserId(Integer userId);

    List<SysMenu> findSysMenuTree(Integer parentId);

    List<SysMenu> findSysMenuTreeByUserId(@Param("userId") Integer userId, @Param("prentId") Integer parentId);

    List<SysMenu> findSysMenusTreeNM(Integer parentId);

    List<SysMenu> findBySys_RoleId(Integer roleId);

}




